﻿Imports System.Data
Imports System.Data.OleDb
Imports DAO
Imports DTO
Public Class LichGanLapBus
    Shared dao As New LichGanLapDao

    Public Shared Function LayDanhSachXeDuocLap() As DataTable
        Return dao.LayDanhSachXeDuocLap()
    End Function

    Public Shared Function LayLichGanLap(ByVal maLichGan As Long) As DataTable
        Return dao.LayLichGanLap(maLichGan)
    End Function
    Public Shared Function ThemMotLichGanLap(ByVal lgLap As LichGanLapDto) As Integer
        Return dao.ThemMotLichGanLap(lgLap)
    End Function

    Public Shared Function CapNhatMotLichGanLap(ByVal lgLap As LichGanLapDto) As Integer
        Return dao.CapNhatMotLichGanLap(lgLap)
    End Function


    Public Shared Function XoaMotLichGanLap(ByVal maLichGan As Long) As Integer
        Return dao.XoaMotLichGanLap(maLichGan)
    End Function

End Class
